package com.hziee.mail.service;

import com.hziee.mail.dao.UserInfoRepository;
import com.hziee.mail.model.UserInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ZX
 */
@Service
public class UserInfoService {

    @Autowired
    private UserInfoRepository userInfoRepository;


    public UserInfoEntity login(String phone, String pwd) {
        return userInfoRepository.findAllByPhoneAndPwd(phone, pwd);
    }
}
